<?php

namespace app\validate;

use think\Validate;

class BlackValidate extends Validate
{
    protected $rule = [
        'voyage|航线'       =>  'require|length:6',
        'airlines|航司'     => 'length:2',
        'seat|仓位'     => 'require|max:2',
        'fly_day|起飞日期'     => 'require',
        'fly_time|起飞时间'     => 'length:2',
        'fly_time00|起飞时间带00'     => 'require|min:3|max:4',
        'flight_no|航班号'     => 'require|min:3|max:6',
    ];

    protected $scene = [
        'avho' => ['fly_day', 'voyage', 'airlines', 'fly_time'],
         'sd' => ['fly_day','voyage', 'fly_time00', 'flight_no'],
        'ff' => ['fly_day','flight_no'],
    ];

}